Skip to content

fix(copilotcli): update elicitation handler in copilot cli to use ask tool#309446

Merged
DonJayamanne merged 1 commit intomainfrom
don/confidential-rodent
Apr 14, 2026
Merged

fix(copilotcli): update elicitation handler in copilot cli to use ask tool#309446
DonJayamanne merged 1 commit intomainfrom
don/confidential-rodent

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

Fixes #307962

Copilot AI review requested due to automatic review settings April 13, 2026 10:43
@DonJayamanne DonJayamanne self-assigned this Apr 13, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Copilot CLI session/MCP integration so the MCP gateway can be started with a session-associated URI (instead of an always-random URI), aligning MCP tool-call context with the originating chat session.

Changes:

  • Extend ICopilotCLIMCPHandler.loadMcpConfig to accept a sessionUri and forward it to IMcpService.startMcpGateway.
  • Update CopilotCLISessionService to pass a session-derived URI into MCP config loading for both session creation and session resume.
  • Adjust CLI test helpers to match the updated MCP handler interface.
Show a summary per file
File Description
extensions/copilot/src/extension/chatSessions/copilotcli/node/test/testHelpers.ts Updates the null MCP handler stub to accept a resource/URI parameter.
extensions/copilot/src/extension/chatSessions/copilotcli/node/mcpHandler.ts Threads a session URI through MCP config loading and into startMcpGateway.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSessionService.ts Provides a session-derived URI to loadMcpConfig when creating/resuming CLI sessions.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

@DonJayamanne DonJayamanne merged commit f0f1768 into main Apr 14, 2026
44 of 45 checks passed
@DonJayamanne DonJayamanne deleted the don/confidential-rodent branch April 14, 2026 09:01
@vs-code-engineering vs-code-engineering bot added this to the 1.117.0 milestone Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copilot CLI: MCP elicitation behave different to local chat

3 participants